﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using RxxAdmin.Common;

namespace RxxAdmin.Extensions;
public static class ConfigureSetup
{
    public static IServiceCollection AddConfigureSetup(this IServiceCollection services, IConfiguration config)
    {
        AppSettings.AddConfigSteup(config);
        //强类型的注册
        //https://www.dotnetshare.com/guid/conf-options/options.html
        //services.Configure<PositionOptions>(config.GetSection(PositionOptions.Position));

        //等其他选项
        return services;
    }
}
